﻿namespace Iit.Automation.Browsers.FireFox
{
    using OpenQA.Selenium.Firefox;
    using OpenQA.Selenium.Interactions;
    using Shared;

    public class FirefoxBrowser : FirefoxDriver, IBrowser
    {
        private static FirefoxBrowser _instance;

        private FirefoxBrowser()
            : base()
        {
        }

        public static IBrowser GetInstance(string folderPath)
        {
            if (_instance == null)
            {
                _instance = CreateNewInstance();
            }

            return _instance;
        }

        private static FirefoxBrowser CreateNewInstance()
        {
            return new FirefoxBrowser();
        }

        public string DriverFolderPath
        {
            get { return string.Empty; }
        }

        public IComponentFactory ComponentFactory { get; set; }


        public Actions GetAction()
        {
            throw new System.NotImplementedException();
        }
    }
}
